package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 发货单
 * </p>
 *
 * @author 小飞
 * @since 2019-07-17
 */
@TableName("send_goods")
public class SendGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联库存id
     */
    @TableField("inventory_order_id")
    private String inventoryOrderId;

    /**
     * 关联申请发货单id
     */
    @TableField("dispatch_order_id")
    private Long dispatchOrderId;

    /**
     * 操作人id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 发货时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 物流信息
     */
    @TableField("logistics")
    private String logistics;

    /**
     * 发货单编号
     */
    @TableField("send_num")
    private String sendNum;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 是否填写物流信息，1.已经填写 2，未填写
     */
    @TableField("status")
    private Integer status;

    public String getInventoryOrderId() {
        return inventoryOrderId;
    }

    public void setInventoryOrderId(String inventoryOrderId) {
        this.inventoryOrderId = inventoryOrderId;
    }

    /**
     * 是否完成  1.已完成 2未完成
     */
    @TableField("is_complete")
    private Integer isComplete;


    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    /**
     * 流程id
     */
    @TableField("process_instance_id")
    private String processInstanceId;
    /**
     * 关联销售单id
     */
    @TableField("sale_id")
    private Long saleId;

    public Long getSaleId() {
        return saleId;
    }

    public void setSaleId(Long saleId) {
        this.saleId = saleId;
    }

    public Integer getIsComplete() {
        return isComplete;
    }

    public void setIsComplete(Integer isComplete) {
        this.isComplete = isComplete;
    }

    public String getCommon() {
        return common;
    }

    public void setCommon(String common) {
        this.common = common;
    }

    /*** 评论信息
     */
    @TableField("common")
    private String common;



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDispatchOrderId() {
        return dispatchOrderId;
    }

    public void setDispatchOrderId(Long dispatchOrderId) {
        this.dispatchOrderId = dispatchOrderId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getLogistics() {
        return logistics;
    }

    public void setLogistics(String logistics) {
        this.logistics = logistics;
    }

    public String getSendNum() {
        return sendNum;
    }

    public void setSendNum(String sendNum) {
        this.sendNum = sendNum;
    }

    @Override
    public String toString() {
        return "SendGoods{" +
        "id=" + id +
        ", inventoryOrderId=" + inventoryOrderId +
        ", dispatchOrderId=" + dispatchOrderId +
        ", userId=" + userId +
        ", createTime=" + createTime +
        ", logistics=" + logistics +
        ", sendNum=" + sendNum +
        "}";
    }
}
